//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.List;

public class TaskCatalog implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private Long createUser;
    private Long createTime;
    private Integer state;
    private Integer orders;
    private String catalogName;
    private Long platformId;
    @TableField(
            exist = false
    )
    private List<Task> tasks;
    @TableField(
            exist = false
    )
    private Integer count;

    public TaskCatalog() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getCreateUser() {
        return this.createUser;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public Integer getState() {
        return this.state;
    }

    public Integer getOrders() {
        return this.orders;
    }

    public String getCatalogName() {
        return this.catalogName;
    }

    public Long getPlatformId() {
        return this.platformId;
    }

    public List<Task> getTasks() {
        return this.tasks;
    }

    public Integer getCount() {
        return this.count;
    }

    public TaskCatalog setId(final Long id) {
        this.id = id;
        return this;
    }

    public TaskCatalog setCreateUser(final Long createUser) {
        this.createUser = createUser;
        return this;
    }

    public TaskCatalog setCreateTime(final Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public TaskCatalog setState(final Integer state) {
        this.state = state;
        return this;
    }

    public TaskCatalog setOrders(final Integer orders) {
        this.orders = orders;
        return this;
    }

    public TaskCatalog setCatalogName(final String catalogName) {
        this.catalogName = catalogName;
        return this;
    }

    public TaskCatalog setPlatformId(final Long platformId) {
        this.platformId = platformId;
        return this;
    }

    public TaskCatalog setTasks(final List<Task> tasks) {
        this.tasks = tasks;
        return this;
    }

    public TaskCatalog setCount(final Integer count) {
        this.count = count;
        return this;
    }

    public String toString() {
        return "TaskCatalog(id=" + this.getId() + ", createUser=" + this.getCreateUser() + ", createTime=" + this.getCreateTime() + ", state=" + this.getState() + ", orders=" + this.getOrders() + ", catalogName=" + this.getCatalogName() + ", platformId=" + this.getPlatformId() + ", tasks=" + this.getTasks() + ", count=" + this.getCount() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof TaskCatalog)) {
            return false;
        } else {
            TaskCatalog other = (TaskCatalog)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label119: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label119;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label119;
                    }

                    return false;
                }

                Object this$createUser = this.getCreateUser();
                Object other$createUser = other.getCreateUser();
                if (this$createUser == null) {
                    if (other$createUser != null) {
                        return false;
                    }
                } else if (!this$createUser.equals(other$createUser)) {
                    return false;
                }

                label105: {
                    Object this$createTime = this.getCreateTime();
                    Object other$createTime = other.getCreateTime();
                    if (this$createTime == null) {
                        if (other$createTime == null) {
                            break label105;
                        }
                    } else if (this$createTime.equals(other$createTime)) {
                        break label105;
                    }

                    return false;
                }

                Object this$state = this.getState();
                Object other$state = other.getState();
                if (this$state == null) {
                    if (other$state != null) {
                        return false;
                    }
                } else if (!this$state.equals(other$state)) {
                    return false;
                }

                label91: {
                    Object this$orders = this.getOrders();
                    Object other$orders = other.getOrders();
                    if (this$orders == null) {
                        if (other$orders == null) {
                            break label91;
                        }
                    } else if (this$orders.equals(other$orders)) {
                        break label91;
                    }

                    return false;
                }

                Object this$catalogName = this.getCatalogName();
                Object other$catalogName = other.getCatalogName();
                if (this$catalogName == null) {
                    if (other$catalogName != null) {
                        return false;
                    }
                } else if (!this$catalogName.equals(other$catalogName)) {
                    return false;
                }

                label77: {
                    Object this$platformId = this.getPlatformId();
                    Object other$platformId = other.getPlatformId();
                    if (this$platformId == null) {
                        if (other$platformId == null) {
                            break label77;
                        }
                    } else if (this$platformId.equals(other$platformId)) {
                        break label77;
                    }

                    return false;
                }

                label70: {
                    Object this$tasks = this.getTasks();
                    Object other$tasks = other.getTasks();
                    if (this$tasks == null) {
                        if (other$tasks == null) {
                            break label70;
                        }
                    } else if (this$tasks.equals(other$tasks)) {
                        break label70;
                    }

                    return false;
                }

                Object this$count = this.getCount();
                Object other$count = other.getCount();
                if (this$count == null) {
                    if (other$count != null) {
                        return false;
                    }
                } else if (!this$count.equals(other$count)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof TaskCatalog;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $createUser = this.getCreateUser();
        result1 = result * 59 + ($createUser == null ? 43 : $createUser.hashCode());
        Object $createTime = this.getCreateTime();
        result1 = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $state = this.getState();
        result1 = result * 59 + ($state == null ? 43 : $state.hashCode());
        Object $orders = this.getOrders();
        result1 = result * 59 + ($orders == null ? 43 : $orders.hashCode());
        Object $catalogName = this.getCatalogName();
        result1 = result * 59 + ($catalogName == null ? 43 : $catalogName.hashCode());
        Object $platformId = this.getPlatformId();
        result1 = result * 59 + ($platformId == null ? 43 : $platformId.hashCode());
        Object $tasks = this.getTasks();
        result1 = result * 59 + ($tasks == null ? 43 : $tasks.hashCode());
        Object $count = this.getCount();
        result1 = result * 59 + ($count == null ? 43 : $count.hashCode());
        return result1;
    }
}
